<?php
session_start();
unset($_SESSION['user']);
session_destroy();//销毁一个会话中的全部数据
setcookie(session_name(),'',time()-3600);//销毁与客户端的卡号
//echo "<script>window.location.href='index.php'</script>";
echo "<script>window.location.href='index.php'</script>";